//package com.xiaoKe.zhonghzu.ui.gather;
//
//import android.os.Bundle;
//
//import androidx.recyclerview.widget.LinearLayoutManager;
//
//import com.xiaoKe.zhonghzu.R;
//import com.xiaoKe.zhonghzu.databinding.FragmentGatherBinding;
//import com.xiaoKe.zhonghzu.global.base.BaseFragment;
//import com.xiaoKe.zhonghzu.global.base.VeinRouter;
//import com.xiaoKe.zhonghzu.global.bean.GeneralData;
//import com.xiaoKe.zhonghzu.global.view.ViewTotHeader;
//import com.xiaoKe.zhonghzu.ui.fzxz.GatherAdapter;
//import com.xiaoKe.zhonghzu.ui.onClick.OnClickListenerPositionInt;
//
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * @ProjectName : xiaoke-pad-zhongzhu
// * @Author : Shijingna
// * @Time : 2024/11/25 12:56
// * @Description : 采集
// */
//public class GatherFragment extends BaseFragment<FragmentGatherBinding> {
//    GatherAdapter gatherAdapter;
//    List<GeneralData> list = new ArrayList<>();
//
//    @Override
//    protected void initView() {
//        /**
//         * 轮播
//         * **/
//        HomeBannerFragment homeBannerFragment = new HomeBannerFragment();
//        getChildFragmentManager().beginTransaction().replace(R.id.frameLayout_banner, homeBannerFragment).commitAllowingStateLoss();
//
//        ViewTotHeader viewTotHeader = getView().findViewById(R.id.viewTotHeader);
//        viewTotHeader.into("待测任务", false);
//        list.add(new GeneralData("ZZWT4-2024", R.mipmap.ic_saoyisao, R.mipmap.ic_sheng));
//        list.add(new GeneralData("ZZWT14-2024", R.mipmap.ic_saoyisao, R.mipmap.ic_fan));
//        list.add(new GeneralData("ZZWT4-2024", R.mipmap.ic_add, R.mipmap.ic_tong));
//        list.add(new GeneralData("SPBD1-2024", R.mipmap.ic_add, R.mipmap.ic_rou));
//        list.add(new GeneralData("JYLB3-2024", R.mipmap.ic_add, R.mipmap.ic_jing));
//        binding.swipeRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
//        gatherAdapter = new GatherAdapter(list);
//        binding.swipeRecyclerView.setAdapter(gatherAdapter);
//    }
//
//    @Override
//    protected void initData() {
//        gatherAdapter.setOnClickListenerPositionInt(new OnClickListenerPositionInt() {
//            @Override
//            public void onItemClick(int item) {
//                Bundle bundle = new Bundle();
//                switch (item) {
//                    case 0:
//                        bundle.putString("titleName", VeinRouter.GROWTHADDFRAGMENT.getTitle());
//                        toFragmentPage(VeinRouter.GROWTHADDFRAGMENT.setBundle(bundle));
//                        break;
//                    case 1:
//                        bundle.putString("titleName", VeinRouter.REPRODUCTIVEADDFRAGMENT.getTitle());
//                        toFragmentPage(VeinRouter.REPRODUCTIVEADDFRAGMENT.setBundle(bundle));
//                        break;
//                    case 2:
//                        bundle.putString("titleName", VeinRouter.CARCASSADDFRAGMENT.getTitle());
//                        toFragmentPage(VeinRouter.CARCASSADDFRAGMENT.setBundle(bundle));
//                        break;
//                    case 3:
//                        bundle.putString("titleName", VeinRouter.MUSCLEADDFRAGMENT.getTitle());
//                        toFragmentPage(VeinRouter.MUSCLEADDFRAGMENT.setBundle(bundle));
//                        break;
//                    case 4:
//                        bundle.putString("titleName", VeinRouter.SEMENADDFRAGMENT.getTitle());
//                        toFragmentPage(VeinRouter.SEMENADDFRAGMENT.setBundle(bundle));
//                        break;
//                }
//            }
//        });
//    }
//}
